#include <iostream>
using namespace std;
class student
{
	int a;
	int b;
public:
	student(int a=1,int b=2):a(a),b(b){}
	void show()
	{
		cout << "(a,b)=(" << a << "," << b << ")" << endl;
	}
	friend student operator+(student&p1,student&p2);


};
student operator+(student&p1,student&p2)
{
	student ret;
	ret.a=p1.a+p2.a;
	ret.b=p1.b+p2.b;
	return ret;
}
int main()
{
	student a;
	a.show();
	student b;
	b.show();
	student c=a+b;
	c.show();
	a.show();

}
